/**
 * @Method divider
 * @Description TODO
 * @Date 2021/1/20 9:52
 * @Created by HePing
 */
export default {
  model: {
    prop: 'model'
  },
  props: {
    model: {},
    config: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  render(h) {
    const vm = this
    const {
      item,
      widget: { style, props, attrs, className }
    } = vm.config
    return h(
      'el-divider',
      {
        attrs,
        style,
        props,
        className
      },
      item && item.label || vm.$slots.default
    )
  }
}
